<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>XXX平台</title>
    <script src="http://47.106.66.89:8080/js/vue.min.js"></script>
    <script src="http://47.106.66.89:8080/js/axios.min.js"></script>
    <link  href="http://47.106.66.89:8080/js/ele-2.15.7/theme-chalk/index.css" rel="stylesheet">
    <script src="http://47.106.66.89:8080/js/ele-2.15.7/index.js"></script>
    <script src="js/login.js"></script>
</head>
<body>
<div id="app">
    <login>
        <template v-slot:nologin="show">
            <button @click.prevent="show.v.loginVisible=true">登录</button>
            <button @click.prevent="show.v.regVisible=true">注册</button>
            <button @click.prevent="show.v.forgetVisible=true">忘记密码</button>
        </template>
        <template v-slot:logined="user">
            Welcome {{user.m.id}}
            <button @click.prevent="location.href='/logout'">退出</button>
        </template>
    </login>
</div>


</body>

<script>
    var v = new Vue({
        el:"#app"
    })
</script>
</html>

